package com.example.springboot_jap_model.dao;

import com.example.springboot_jap_model.domain.UserAndRole;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface UserAndRoleDao extends JpaRepository<UserAndRole, Long> {
    List<UserAndRole> findByUserId(Long userId);

    List<UserAndRole> findByRoleId(Long roleId);
}
